﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="home.aspx.cs" Inherits="DeansWsccProject.home" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    Sum of two whole numbers calculator:
    <br />
    <asp:TextBox ID="tbFirstNo" runat="server"></asp:TextBox>
    <asp:CompareValidator ID="tbFirstNoCompareValidator" runat="server" ErrorMessage="Please enter a whole number without decimal places using digits" Operator="DataTypeCheck" ControlToValidate="tbFirstNo" Type="Integer"></asp:CompareValidator>
    <asp:RequiredFieldValidator ID="tbFirstNoRequiredFieldValidator" runat="server" ErrorMessage="Cannot be left blank" ControlToValidate="tbFirstNo"></asp:RequiredFieldValidator>
    <br />+<br />
    <asp:TextBox ID="tbSecondNo" runat="server"></asp:TextBox>
    <asp:CompareValidator ID="tbSecondNoCompareValidator" runat="server" ErrorMessage="Please enter a whole number withou decimal places using digits" Operator="DataTypeCheck" ControlToValidate="tbSecondNo" Type="Integer"></asp:CompareValidator>
    <asp:RequiredFieldValidator ID="tbSecondNoRequiredFieldValidator" runat="server" ErrorMessage="Cannot be left blank" ControlToValidate="tbSecondNo"></asp:RequiredFieldValidator>
    <br />
    <asp:Button ID="btnCalculate" runat="server" Text="Calculate" OnClick="btnCalculate_Click" />
    <br />
    <asp:Label ID="lblResult" runat="server" Text="Result"></asp:Label>

</asp:Content>
